li {
    list-style: none;
    float: left;
    margin: 0 5px;
}
ul div {
    overflow: hidden;
    display: inline-block;
}